package day5.homewok;

public class Vehicle {
	private double speed;
	private double size;
	
	public Vehicle() {
		
	}
	
	public Vehicle(double speed, int size) {
		this.speed = speed;
		this.size = size;
	}
	
	public void move() {
		System.out.println("当前的速度：" + speed);
	}
	
	public void speedUp(int speed) {
		this.speed += speed;
	}
	
	public void speedDown(int speed) {
		this.speed -= speed;
	}

	public double getSpeed() {
		return speed;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

	public double getSize() {
		return size;
	}

	public void setSize(double size) {
		this.size = size;
	}

}
